<?php

use Phinx\Migration\AbstractMigration;

class AddLoginInfoToStaff extends AbstractMigration
{
    public function change()
    {
        $table = $this->table('staff');
        $table->addColumn('last_login_time', 'timestamp', ['null' => true, 'comment' => '最后登录时间'])
            ->addColumn('last_login_ip', 'string', ['limit' => 50, 'null' => true, 'comment' => '最后登录IP'])
            ->update();
    }
} 